package com.pinusmusic.service.impl;

import com.pinusmusic.dao.MusicLanguageDao;
import com.pinusmusic.dao.MusicStyleDao;
import com.pinusmusic.dao.impl.MusicLanguageDaoImpl;
import com.pinusmusic.dao.impl.MusicStyleDaoImpl;
import com.pinusmusic.domain.MusicLanguage;
import com.pinusmusic.domain.MusicStyle;
import com.pinusmusic.service.SortService;

import java.util.List;

public class SortServiceImpl implements SortService {
    private MusicLanguageDao languageDao = new MusicLanguageDaoImpl();
    private MusicStyleDao styleDao = new MusicStyleDaoImpl();
    @Override
    public List<MusicLanguage> findAllLanguage() {
        return languageDao.findAllLanguage();
    }

    @Override
    public List<MusicStyle> findAllStyle() {
        return styleDao.findAllStyle();
    }
}
